package org.ielse.frame.t.view.recycler;

import org.ielse.frame.util.LogUtil;

import android.support.v7.widget.DefaultItemAnimator;
import android.support.v7.widget.RecyclerView.ViewHolder;

public class LogForDefaultItemAnimator extends DefaultItemAnimator {
	@Override public boolean animateAdd(ViewHolder holder) {
		LogUtil.e("ItemAnimator animateAdd");
		return super.animateAdd(holder);
	}

	@Override public boolean animateMove(ViewHolder holder, int fromX, int fromY, int toX, int toY) {
		LogUtil.e("ItemAnimator animateMove fromX:" + fromX + ",fromY:" + fromY + ",toX:" + toX + ",toY:" + toY);
		return super.animateMove(holder, fromX, fromY, toX, toY);
	}

	@Override public boolean animateRemove(ViewHolder holder) {
		LogUtil.e("ItemAnimator animateRemove");
		return super.animateRemove(holder);
	}

	@Override public void endAnimation(ViewHolder item) {
		LogUtil.e("ItemAnimator endAnimation");
		super.endAnimation(item);
	}

	@Override public void endAnimations() {
		LogUtil.e("ItemAnimator endAnimations");
		super.endAnimations();
	}

	@Override public boolean isRunning() {
		LogUtil.e("ItemAnimator isRunning");
		return super.isRunning();
	}

	@Override public void runPendingAnimations() {
		LogUtil.e("runPendingAnimations");
		super.runPendingAnimations();
	}

}